package Thread;

public class ThreadDemo3 {
    public static void main(String[] args) {
        Thread thread=new Thread(new Runnable() {       //new thread 的参数实现一个runnable接口，然后重写run方法
            @Override
            public void run() {
                System.out.println("hello 1");
            }
        });
        thread.start();
        while(true){
            System.out.println("hello 2");
        }
    }
}
